#ifndef XX_ANCHOR_OPTIONS_HH
#define XX_ANCHOR_OPTIONS_HH

#include <iostream>
#include <cstdlib>
//#include <unistd.h>
#include <string>
#include <unordered_map>

class Options {
public:
	Options();
	~Options();

	void parseOptions(int argc, char* argv[]);
	void printOptions();

	// 获取查询结果
	std::unordered_map<char, std::string> getValues() const;

private:
	void setValue(char option, const std::string& value);
	void printUsageAndExit(const char* programName);

private:
	std::unordered_map<char, std::string> values;
};

#endif